home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
gfx
/
conv
/
Mp2anim.lha
/
Mpeg2anim
/
MpegCon
< prev
next >
Wrap
Text File
|
1999-03-21
|
2KB
|
68 lines
c:copy c:copy t:copy
t:copy >nil: c:delete T:del
echo "c*N"
Requestfile >env:MPname TITLE="Choose MPEG to convert"
if warn
echo >env:msg "Operation canceled....!"
skip end
endif
if not exists $MPname
echo >env:msg "File does not exist....!"
skip end
endif
Requestfile >env:MPdest TITLE="Choose destination path."
if warn
echo >env:msg "Operation canceled....!"
skip end
endif
Requestchoice >env:mode "" "Choose output mode" Ham6 Ham8 Ham6_scale Ham8_scale Abort
if val $mode eq 0
echo >env:msg "Operation canceled....!"
t:del >nil: env:mode
skip end
endif
if val $mode GT 2
echo " Once the mpeg is split you will be asked to enter your scale coordinates.*N"
endif
assign MPT: MPtemp
t:copy >nil: convertMPimage T:cmi
T:del >nil: MPtemp/#?
mp -saveiff MPtemp/pic.%%%%% $MPname
if val $mode GT 2
SmartScale ask MPT:pic.00001
endif
if val $mode eq 3
if $YIN eq $YOUT
echo >env:mode 1
else
list >t:ConPics sort name MPT: lformat "t:copy %s%s t:24b*Nt:CMI noprogress format ham6 x $XOUT y $YOUT t:24b to t:iff*Nt:copy t:iff %s%s*Necho %s"
endif
endif
if val $mode eq 4
if $YIN eq $YOUT
echo >env:mode 2
else
list >t:ConPics sort name MPT: lformat "t:copy %s%s t:24b*Nt:CMI noprogress format ham8 x $XOUT y $YOUT t:24b to t:iff*Nt:copy t:iff %s%s*Necho %s"
endif
endif
if val $mode eq 1
list >t:ConPics sort name MPT: lformat "t:copy %s%s t:24b*Nt:CMI noprogress format ham6 t:24b to t:iff*Nt:copy t:iff %s%s*Necho %s"
endif
if val $mode eq 2
list >t:ConPics sort name MPT: lformat "t:copy %s%s t:24b*Nt:CMI noprogress format ham8 t:24b to t:iff*Nt:copy t:iff %s%s*Necho %s"
endif
ECHO "*N MPEG is split, now converting pics.*N*N"
execute T:ConPics
echo ""
t:del >nil: t:24b t:iff t:cmi
list sort name >T:ConPics MPtemp lformat "0 %s%s"
mkanim using T:conpics to $MPdest
T:del >nil: env:MP#? t:conpics MPtemp/#? env:mode env:xin env:yin env:din env:xout env:yout ENV:XINh env:PN
echo >env:msg "Mpeg2anim successfully completed."
lab end
Requestchoice >nil: "" "$msg" OK
t:del >nil: env:msg t:copy t:del
endcli